/*
 * This file is part of aion-lightning <aion-lightning.org>.
 * 
 * aion-lightning is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * aion-lightning is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with aion-lightning.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionengine.gameserver.model.templates.spawns.vortexspawns;

import com.aionengine.gameserver.model.templates.spawns.SpawnGroup2;
import com.aionengine.gameserver.model.templates.spawns.SpawnSpotTemplate;
import com.aionengine.gameserver.model.templates.spawns.SpawnTemplate;
import com.aionengine.gameserver.model.vortex.VortexStateType;

/**
 * @author Source
 */
public class VortexSpawnTemplate extends SpawnTemplate {

    private int id;
    private VortexStateType stateType;

    public VortexSpawnTemplate(SpawnGroup2 spawnGroup, SpawnSpotTemplate spot) {
        super(spawnGroup, spot);
    }

    public VortexSpawnTemplate(SpawnGroup2 spawnGroup, float x, float y, float z, byte heading, int randWalk, String walkerId,
                               int staticId, int fly) {
        super(spawnGroup, x, y, z, heading, randWalk, walkerId, staticId, fly);
    }

    public int getId() {
        return id;
    }

    public VortexStateType getStateType() {
        return stateType;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setStateType(VortexStateType stateType) {
        this.stateType = stateType;
    }

    public final boolean isInvasion() {
        return stateType.equals(VortexStateType.INVASION);
    }

    public final boolean isPeace() {
        return stateType.equals(VortexStateType.PEACE);
    }

}